<template>
  <!-- nav -->
  <div class="box">
    <div class="navs" style="background-color: #e43130; width: 100%">
      <!-- 左图标 -->
      <div class="left" @click="fun" style="margin-top:1.8667vw">
        <van-icon name="wap-nav" size="30" color="#fff " />
      </div>
      <!-- 搜索 -->
      <div class="body" @click="fun1">
        <img
          src=""
          alt="" width="20px" /><span class="dv">|</span><van-icon name="search" class="icon" /><span
          class="dv1">立柜式空调</span>
      </div>
      <!-- 右图标 -->
      <div class="right" @click="fun2" style="margin-top:1.8867vw">
        <van-icon name="contact" size="28" color="#fff" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    fun() {

      this.$router.push('/ClassifyPage')
    },
    fun1() {
      this.$router.push("/SearchS").catch(err => { });
    },
    fun2() {
      this.$router.push('/MyJD')
    },
  },
};
</script>

<style scoped>
.box {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.navs {
  width: 100%;
  height: 11.733vw;
  background-color: #f66;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: #fff;
  font-size: 12px;
  line-height: 30px;
  overflow: hidden;
}

.icon {
  font-size: 24px;
  color: #666;
}

.box .dv {
  color: #999;
  font-size: 24px;
  margin: 0 3px;
}

.box .dv1 {
  color: #666;
  margin: 0 3px;
}

img {
  margin: 0 8px 0 15px;
}

.body {
  display: flex;
  width: 73%;
  height: 8vw;
  background-color: #fff;
  border-radius: 20px;
  align-items: center;
}
</style>